TOP=.

include $(TOP)/Makefile.misc

EXTRA_FLAGS=-lpthread

all: client server_process server_thread
client: client.o
	${CC} -o client $<
server_process: server_process.o $<
	${CC} -o server_process $<

server_thread: server_thread.o $<
	${CC} -o  server_thread $< $(EXTRA_FLAGS)


client.o: client.c
	${CC} ${CFLAGS} -c  $<
server_process.o: server_process.c
	${CC} ${CFLAGS} -c $<
server_thread.o: server_thread.c
	${CC} -c $<

.PHONY:
clean:
	rm -rf *.o client server_process server_thread